#include <limits>
#include "base/process_util.h"
#include "base/rand_util.h"
#include "base/stringprintf.h"
#include "utils.h"
#ifdef max
#undef max
#endif

std::string GenerateUniqueRandomName() {
  int process = base::GetCurrentProcId();
  std::string name = base::StringPrintf("Shared.%d.%d",	process,
      base::RandInt(0, std::numeric_limits<int32>::max()));
  return name;
}
